/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2008-2021. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 *  2020.1.3-Changed modify the import classes type and add some camera events.
 *                  Huawei Technologies Co., Ltd.
 *
 */

package com.huawei.hms.maps.sample.utils;

import com.huawei.hms.maps.model.LatLng;

import java.util.Arrays;
import java.util.List;

public class MapUtils {

    public static final LatLng HUAWEI_CENTER = new LatLng(31.98559, 118.76613);

    public static final LatLng APARTMENT_CENTER = new LatLng(31.97480, 118.75682);

    public static final LatLng EPARK_CENTER = new LatLng(31.97846, 118.76454);

    public static final LatLng FRANCE = new LatLng(47.893478, 2.334595);

    public static final LatLng FRANCE1 = new LatLng(48.993478, 3.434595);

    public static final LatLng FRANCE2 = new LatLng(48.693478, 2.134595);

    public static final LatLng FRANCE3 = new LatLng(48.793478, 2.334595);

    public static List<LatLng> createRectangle(LatLng center, double halfWidth, double halfHeight) {
        return Arrays.asList(new LatLng(center.latitude - halfHeight, center.longitude - halfWidth),
                new LatLng(center.latitude - halfHeight, center.longitude + halfWidth),
                new LatLng(center.latitude + halfHeight, center.longitude + halfWidth),
                new LatLng(center.latitude + halfHeight, center.longitude - halfWidth),
                new LatLng(center.latitude - halfHeight, center.longitude - halfWidth));
    }

    public static final int MAP_TYPE_NONE = 0;

    public static final int MAP_TYPE_NORMAL = 1;

    public static final float MAX_ZOOM_LEVEL = 20;

    public static final float MIN_ZOOM_LEVEL = 3;

    public static final String API_KEY = "YOUR API KEY";
}
